package com.lsl.Interface.java8;

/**
 * @author lishuailong
 * @create 2020-06-11 14:20
 */
public class test2 {
    public static void main(String[] args) {
        我 string= new 我();
        string.help();
    }
}

interface  孝顺{
    default  void help(){
        System.out.println("救妈妈！");
    }
}
interface  爱情{
    default  void help(){
        System.out.println("救媳妇！");
    }
}
class 爸爸{
    public void help(){
        System.out.println("救你妈！");
    }
}

class  我 implements 孝顺,爱情{

    @Override
    public void help() {
        孝顺.super.help();
    }
}

